package com.piece.mall.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.piece.mall.model.PmsAttr;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@ApiModel(value = "商品spu展示属性")
public class SpuInfoVo {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    private String spuName;

    @ApiModelProperty(value = "商品描述")
    private String spuDescription;

    @ApiModelProperty(value = "所属分类id")
    private Long catalogId;

    @JsonIgnore
    @ApiModelProperty(value = "所属分类路径")
    private String[] catalogPath;

    @ApiModelProperty(value = "品牌id")
    private Long brandId;

    @ApiModelProperty(value = "商品重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "上架状态【0-上架，1-下架】")
    private int publishStatus;

    @ApiModelProperty(value = "商品介绍")
    private String introduce;

    @ApiModelProperty(value = "spu图片集合")
    private List<String> spuImages;

    @ApiModelProperty(value = "积分设置")
    private BoundsVo bounds;

    @ApiModelProperty(value = "规格参数集合")
    private List<PmsAttr> attrs;

    @ApiModelProperty(value = "sku属性集合")
    private List<SkuInfoVo> skuInfos;
}
